{% include 'head.html' %}
<body>
<div id="Background">
	{% include 'header.html' %}

<div id="Wrapper">
<div id="Controller">
	{% if message %}<div class="message">{{ message }}</div>{% endif %}
	{% for article in articles %}	
		<div class="Controller-entry">
			<div class="Controller-entry-title">
				<h1><a href="{% if article.title_link %} {{ article.title_link }} {% else %} /{{ article.title_url }} {% endif %}" target="_blank"><span class="span-b">VIEW</span></a>{{ article.title }}</h1>
				<a href="/indoor/remove-article/{{ article.key }}" ><span class="span-c">remove</span></a>
				<a href="/indoor/edit-article/{{ article.key }}" ><span class="span-a">edit</span></a>
				<span class="span-c">{{ article.hits }}</span>
			</div>
			<div class="Controller-entry-time">Creat:{{ article.last_modified }}</div>
		</div>
	{% endfor %}	
{% if is_paginated %}
	<div id="Pages">
		<div id="Numbers">{% for p in page_range %}{% ifequal p page %}{{ p|add:"1" }}&nbsp;{% else %}<a href="/indoor/dashboard?page={{ p }}" class="page">{{ p|add:"1" }}</a>&nbsp;{% endifequal %}{% endfor %}</div>
	{% if page_has_next %}
	<a class="super normal button" id="doNext" href="/indoor/dashboard?page={{ next }}">Next</a>
	{% endif %}
	{% if page_has_previous %}
	<a class="super normal button" id="doPrevious" href="/indoor/dashboard?page={{ previous }}">Previous</a>
	{% endif %}
	</div>
	{% endif %}
</div>

{% include 'sidebar.html' %}
{% include 'footer.html' %}


</div>
</div>
</body>
</html>
